const mongoose = require('./connector.js')

const Schema = mongoose.Schema;

const stuSchema = new Schema({
	name: {type: String,required: true},
	age: {type: Number,default: 0},
	birthDate: {type: Date,default: Date.now}
})

module.exports = mongoose.model('Stu',stuSchema)
